<link th:href="@{css/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css}" rel="stylesheet" type="text/css" />
<!--<link th:href="@{js/bootstrap/bootstrap-select.min.css}" rel="stylesheet" type="text/css" />-->
<div class="card">
    <div data-th-include="charging/addCharging"></div>
    <div data-th-include="charging/addChargingDown"></div>
    <div class="card-block">
        <div class="table-responsive">
            <div id="data-table_wrapper" class="dataTables_wrapper">

                <!--                <div class="dataTables_buttons hidden-sm-down actions">
                                <span><button type="button" class="btn btn-primary" onclick="search()">搜索</button></span>
                                <span><button type="button" class="btn btn-primary" id="card_reading" data-toggle="modal" data-target="#card-read">提交投诉信息</button></span>
                                </div>-->


                <div id="data-table_filter" class="dataTables_filter">
                    <form class="user-table-form">
                        <div class="row">
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon"> 投诉信息编号： </span>
                                    <div class="form-group">
                                        <input type="text" id ="id" name="id" class="form-control">
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>

                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon"> 受理支付渠道： </span>
                                    <div class="form-group">
                                        <select id="selectPaymentChannels" name="selectPaymentChannels" placeholder="受理支付渠道" class="form-control">
                                        </select>
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>


                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon"> 受理开始时间： </span>
                                    <div class="form-group">
                                        <input type="text" class="form-control form_datetime" id="startTime" name="startTime" autocomplete="off"/>
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>

                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon"> 受理结束时间： </span>
                                    <div class="form-group">
                                        <input type="text" class="form-control form_datetime" id="endTime" name="endTime" autocomplete="off"/>
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>

                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon"> 投诉渠道： </span>
                                    <div class="form-group">
                                        <select id="selectComplaintChannels" name="selectComplaintChannels" placeholder="投诉渠道" class="form-control">
                                        </select>
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>

                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon"> 联系方式： </span>
                                    <div class="form-group">
                                        <input type="text" id ="contactInformation" name="contactInformation" class="form-control">
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon"> 公交公司： </span>
                                    <div class="form-group">
                                        <input type="text" id="busCompany" name="busCompany" class="form-control">
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon"> 投诉类别： </span>
                                    <div class="form-group">
                                        <select id="selectComplaintType" name="selectComplaintType" placeholder="投诉渠道" class="form-control">
                                        </select>
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon"> 责任判定： </span>
                                    <div class="form-group">
                                        <select id="selectDutyDetermine" name="selectDutyDetermine" placeholder="责任判定" class="form-control">
                                        </select>
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon"> 处理状态： </span>
                                    <div class="form-group">
                                        <select id="selectProcessing" name="selectProcessing" placeholder="处理状态" class="form-control">
                                        </select>
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>

                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon"> 处理人： </span>
                                    <div class="form-group">
                                        <input type="text" id="handler" name="handler" class="form-control">
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>

                            <div class="col-sm-4">
                                <div class="input-group">
                                    <span class="input-group-addon"> 处理开始时间： </span>
                                    <div class="form-group">
                                        <input type="text" class="form-control form_datetime" id="startTime1" name="startTime1" autocomplete="off"/>
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>

                            <div class="col-sm-4">
                                <div class="input-group">
                                    <span class="input-group-addon"> 处理结束时间： </span>
                                    <div class="form-group">
                                        <input type="text" class="form-control form_datetime" id="endTime1" name="endTime1" autocomplete="off"/>
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>

                            <div class="col-sm-3" style="display:none">
                                <div class="input-group">
                                    <span class="input-group-addon"> if </span>
                                    <div class="form-group">
                                        <input type="text" class="form-control form_datetime" id="first" name="first" style="display:none"/>
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="hidden-sm-down actions text-center">
                    <span><button type="button" class="btn btn-primary" onclick="search()">搜索</button></span>
                    <span><button type="button" class="btn btn-primary" id="card_reading" data-toggle="modal" data-target="#addCharging">提交投诉信息</button></span>
                    <!-- <span><button type="button" class="btn btn-primary" id="addPullDown" data-toggle="modal" data-target="#addPullDown">配置</button></span>-->
                    <span><button type="button" class="btn btn-primary" id="addPullDown" data-toggle="modal" data-target="#addChargingDown">配置</button></span>
                    <input id="exportExcel" class="btn btn-primary" type="button" value="导出"/>
<!--                    <input id="articleImageFile" name="excelFile" type="file" class="form-control" style="width: 300px; display: inline;"/>
                    <input id="saveZipButton" class="btn btn-primary" type="button" value="导入"/>
                    -->
                    <!--<input id="message" class="btn btn-primary" type="button" value="每日报文"/>-->
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <button class="btn btn-primary" onclick="search1()" type="button" value="49" name="search">优先处理 <span class="badge" id="firstCharging" name="firstCharging">4</span>
                    </button>
                </div>
                <!-- 投诉信息列表-->
                <table id="userTable" data-mobile-responsive="true" class="mb-bootstrap-table text-nowrap"></table>
            </div>
        </div>
    </div>
</div>

<!-- 修改投诉信息页面-->
<div class="modal fade" id="updateCharging" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title pull-left" id="user-add-modal-title">充电桩投诉信息</h3>
            </div>
            <div class="modal-body">
                <form id="user-add-form">
                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                投诉信息编号：
                            </span>
                            <div class="form-group">
                                <input type="text" id="update_charging_id" class="form-control" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                受理时间：
                            </span>
                            <div class="form-group">
                                <input type="text" id="update_charging_acceptanceTime" class="form-control" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                受理支付渠道：
                            </span>
                            <div class="form-group">
                                <select id="update_charging_paymentChannels" name="update_charging_paymentChannels" placeholder="受理支付渠道" class="form-control">
                                </select>
                            </div>
                        </div>
                    </div>
                                        <div class="col-sm-11">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    投诉渠道：
                                                </span>
                                                <div class="form-group">
                                                    <select id="update_charging_complaintChannels" name="update_charging_complaintChannels" placeholder="投诉渠道" class="form-control">
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
<!--                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                投诉线路：
                            </span>
                            <div class="form-group">
                                <input type="text" id="update_submission_complaintLine" class="form-control">
                            </div>
                        </div>
                    </div>-->

                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                投诉内容：
                            </span>
                            <div class="form-group">
                                <textarea rows="3" cols="20" id="update_charging_contentsComplaints" class="form-control"/>
                            </div>
                        </div>
                    </div>

                                        <div class="col-sm-11">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    联系方式：
                                                </span>
                                                <div class="form-group">
                                                    <input type="text" id="update_charging_contactInformation" class="form-control">
                                                </div>
                                            </div>
                                        </div>
                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                处理时间：
                            </span>
                            <div class="form-group">
                                <input type="text" id="update_charging_processingTime" class="form-control" readonly placeholder="备注：处理时间不需要填写，处理状态选择已处理会自动显示">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                               处理结果：
                            </span>
                            <div class="form-group">
                                <textarea rows="3" cols="20" id="update_charging_processingResults" class="form-control"/>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                投诉类别：
                            </span>
                            <div class="form-group">
                                <select id="update_charging_complaintType" name="update_charging_complaintType" placeholder="投诉类别" class="form-control">
                                </select>
                            </div>
                        </div>
                    </div>
                    <!--                    <div class="col-sm-11">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    责任判定：
                                                </span>
                                                <div class="form-group">
                                                    <select id="update_submission_dutyDetermine" name="update_submission_dutyDetermine" placeholder="责任判定" class="form-control">
                                                    </select>
                                                </div>
                                            </div>
                                        </div>-->
                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                登记人：
                            </span>
                            <div class="form-group">
                                <input type="text" id="update_charging_registrar" class="form-control">
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                处理人：
                            </span>
                            <div class="form-group">
                                <input type="text" id="update_charging_handler" class="form-control">
                            </div>
                        </div>
                    </div>
                    <!--                    <div class="col-sm-11">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    公交公司：
                                                </span>
                                                <div class="form-group">
                                                    <input type="text" id="update_submission_busCompany" class="form-control">
                                                </div>
                                            </div>
                                        </div>-->
                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                处理状态：
                            </span>
                            <div class="form-group">
                                <select id="update_charging_processing" name="update_charging_processing" placeholder="处理状态" class="form-control">
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                备注：
                            </span>
                            <div class="form-group">
                                <input type="text" id="update_charging_remakes" class="form-control">
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-11">
                        <div class="input-group">
                    <span class="input-group-addon">
                        图片：
                    </span>
                            <div class="form-group">
                                <img class="img-thumbnail" id="update_charging_pic">
                                <div class="form-group">
                                    <input type="file" aria-label="..." id="addUpdateChargingPic" name="addUpdateChargingPic">
                                </div>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
            <!-- 提交功能 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-save" id="update-charging-save" name="save">修改</button>
                <button type="button" id="update-charging-close" class="btn btn-secondary btn-close">关闭</button>
                <button class="btn-hide"></button>
            </div>


        </div>
    </div><!-- /.modal -->
</div>

<!-- 短信通知页面-->
<div class="modal fade" id="chargingFebsNotice" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title pull-left" id="add-modal-title">短信通知</h3>
            </div>
            <div class="modal-body">
                <form id="add-form">
                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                投诉信息编号：
                            </span>
                            <div class="form-group">
                                <input type="text" id="charging_id" class="form-control" readonly>
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                发送手机号码：
                            </span>
                            <div class="form-group">
                                <input type="text" id="charging_phone" class="form-control">
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-11">
                        <div class="input-group">
                            <span class="input-group-addon">
                                发送内容：
                            </span>
                            <div class="form-group">
                                <input type="text" id="charging_value" class="form-control" defaultVal="客户您好，充电金额已原路退回您的扣款账户，请留意查收。感谢您的理解祝您生活愉快！"  value="客户您好，充电金额已原路退回您的扣款账户，请留意查收。感谢您的理解祝您生活愉快！" readonly>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
            <!-- 提交功能 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-save" id="chargingFebsNotice-save" name="save">短信发送</button>
                <button type="button" id="chargingFebsNotice-close" class="btn btn-secondary btn-close">关闭</button>
                <button class="btn-hide"></button>
            </div>


        </div>
    </div><!-- /.modal -->
</div>

<script data-th-src="@{js/app/charging/chargingInfo.js}"></script>
<script data-th-src="@{js/bootstrap/bootstrap-datetimepicker.min.js}"></script>
<script data-th-src="@{js/bootstrap/bootstrap-datetimepicker.zh-CN.js}"></script>
<script data-th-src="@{js/app/charging/updateCharging.js}"></script>
<script data-th-src="@{js/app/charging/importCharging.js}"></script>